Keeps player and enemies in bounds