Refactoring into game and avatar objects.
Add map mode file.