fixed map refreshing
added backend calculations, websocket push, and frontend rendering for stats