Implemented movement through maze