PHP implementation of a toy robot simulator