action = RLGlue.RL_agent_step(r_o.getReward(),r_o.getObservation());
}
// Get the move from the rl-glue action
GroundFact move_fact = moves.get(action.intArray[0]);
Term move_term = move_fact.getTerm(1);
move = new Triple<Term, String, String>(move_term,"Decicision tomada en RL-GLUE", "");
// If the choosen move is legal, there is a positive reward
// If it is not legal, a negative one, and the agent has to choose again
if (contains(legal_moves, move_fact))