public void move(int dx, int dy) {
        SnakeSection head = new SnakeSection(getX() + dx, getY() + dy);
        Mouse mouse = Room.game.getMouse();
        checkBorders(head);
        checkBody(head);

        if (isAlive) {
            if (mouse.getX() == sections.get(0).getX() &&
                    mouse.getY() == sections.get(0).getY()) {
                Room.game.eatMouse();
                sections.add(0, head);
            }
            else {
                sections.add(0, head);
                sections.remove(sections.size()-1);
            }
        }
    }