code for a activity bot that treversis a maze