public void executeCommands(){
        //note that order of execution is important, and will effect gamePlay, so putting activeCommands in a list wouldn't be any better.
        if(activeCommands[REVIVE])
        {
            revive();
        }

        if(activeCommands[KILL])
        {
            kill();
        }

        if(isAlive())
        {

            if (activeCommands[FIRE_BULLET])
            {
                fireBullet();
            }

            if (activeCommands[TURN_CLOCKWISE])
            {
                turn(true);
            }
            else
            if (activeCommands[TURN_ANTICLOCKWISE])
            {
                turn(false);
            }

            if (activeCommands[MOVE_FORWARD])
            {
                move(true);
            }
            else
            if(activeCommands[MOVE_BACKWARD])
            {
                move(false);
            }
        }

    }