Corrected the 'action' function in map.py

A player’s action is now properly routed throughout map.py