valid position checker working logic
random coordinates work for ship size 2, except if index is 0 and -1 goes to [-1]