Modified   space-maze-lib/rectangle.cpp