code refactoring, player entity, map scrolling