@Override
    public boolean checkMove(GameBoard gb, int player, Coordinates coord) {
        try {
            if (gb.getOccupation(coord) != EMPTY)
                return false;
        } catch (OutOfBoundsException e) {
            return false;
        }
            
        for (int i = -1; i <= 1; ++i)
            for (int j = -1; j <= 1; ++j)
                if (i != 0 || j != 0)
                    if (checkDirection(gb, player, coord, i, j)) 
                        return true; 
        return false;
    }