Valve Assembly for hydraulic systems in marine engines