Changed player data structure and added code for saving moduses