Added RL-Glue conditional support, better error message when player_agent is ill-defined.