public SimpleToyState reset() {
if (fetchable != null)
printTest(maxStep);
return simpleToyState = new SimpleToyState(0, 0);
}
<BUG>public StepReply<SimpleToyState> step(Integer a) {
simpleToyState = new SimpleToyState(simpleToyState.getI()+1, simpleToyState.getStep() + 1);
return new StepReply<SimpleToyState>(simpleToyState, 1, isDone(), new JSONObject("{}"));
</BUG>
}

public SimpleToyState reset() {
if (fetchable != null)
printTest(maxStep);
return simpleToyState = new SimpleToyState(0, 0);
}
public StepReply<SimpleToyState> step(Integer a) {
double reward = (simpleToyState.getStep() % 2 == 0) ? 1 - a: a;
simpleToyState = new SimpleToyState(simpleToyState.getI()+1, simpleToyState.getStep() + 1);
return new StepReply<SimpleToyState>(simpleToyState, reward, isDone(), new JSONObject("{}"));
}
