Added end game conditions. Refactored to make a BetaLocation2D with implemented distanceTo