setting up ending locations for ships to be handled based on user input directionality
cut out duplicate calculations in direction
changed row to column in two cases