implemented a function CheckShipCoordinates for checking starting and end coordinates difference matching shipSize while being straigh lines