Code Review changes:
Removed rectangleIndex and rectangleArray.
The pressed body is now stored in pressedBody property.