main.cpp changes

added map access to the player