cleaned up the frontend a bit to stop players from moving off the map and sending too many movement events