Added hitSide() function

Added hitSide() to detect if a GameObject has collided with the side of
the screen.