Boundary Checking

Added checking for when the player leaves the limits of the current map.