fixed mob glitching bug

it seemed that even though the game was in the main menu it was still
doing all the tasks that it would do if it wasn't, this may mean that in
the future we may need a map loading enum - if it starts to take a while
to load maps.