public void checkBorders(SnakeSection head) {
        if (head.getX() <= -1) this.isAlive = false;
        if (head.getY() <= -1) this.isAlive = false;
        if (head.getX() >= Room.game.getWidth()+1) this.isAlive = false;
        if (head.getY() >= Room.game.getHeight()+1) this.isAlive = false;
    }

    public void checkBody(SnakeSection head){
        if (this.sections.contains(head)){
            isAlive = false;
        }
    }