[Update] updated maze moves logic