Fixed a bug where the goal could be just on the edge of the screen.