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