assert (thisAction.getInt(0) < 4) : "Action should be in [0,4], " + thisAction.getInt(0) + " was provided";
theWorld.updatePosition(thisAction.getInt(0));
Observation theObservation = new Observation(1, 0, 0);
theObservation.setInt(0, theWorld.getState());
Reward_observation_terminal RewardObs = new Reward_observation_terminal();
RewardObs.setObservation(theObservation);
RewardObs.setTerminal(theWorld.isTerminal());
RewardObs.setReward(theWorld.getReward());