Fixed bugs related to width/height
It seems that the agent is capable of playing a full game sending random commands and repeating them if needed.