refactor networking logic into separate file
begin adding map grid logic