@Override
    public void keyPressed(int key, char c) {
        boolean tileWasMoved = false;

        switch (key) {
            case KEY_RIGHT:
                tileWasMoved = gameBoardManipulator.moveRight();
                break;
            case KEY_LEFT:
                tileWasMoved = gameBoardManipulator.moveLeft();
                break;
            case KEY_UP:
                tileWasMoved = gameBoardManipulator.moveUp();
                break;
            case KEY_DOWN:
                tileWasMoved = gameBoardManipulator.moveDown();
                break;
        }

        if (tileWasMoved) {
            gameBoardManipulator.generateNewTiles();
            gameBoardManipulator.markAllTilesAsNotMerged();
        }
    }