public Coordinate(Ship[][] board){ //Generates a random coordinate on a board which is still available.
	do{
		x = (int)(Math.random() * board[0].length);
		y = (int)(Math.random() * board.length);
	}while(board[y][x] != null);
	
	
}