now stops moving when opening inventory
map class added, replaces old map functions and list