Added the sanitizeCommand function.
Added bot wall collision detection.