My implementation of a toy robot simulator, a Ruby coding test