fixing player position and map drawing