general refactoring of map drawing process,
fixing map coords rounding bug