Modified   space-maze-lib/space.cpp