public void handleReleasedKeys(ArrayList<KeyButtons> keyReleased)
    {
        if (keyReleased.contains(KeyButtons.LEFT))
        {
            left = false;
        }
        if (keyReleased.contains(KeyButtons.RIGHT))
        {
            right = false;
        }
        if (keyReleased.contains(KeyButtons.UP))
        {
            up = false;
        }
        if (keyReleased.contains(KeyButtons.DOWN))
        {
            down = false;
        }
        if (keyReleased.contains(KeyButtons.CONFIRM))
        {
            confirm = false;
        }
    }