solve bug with player id being set to -1
rearrange and rewrite some blocks
partially add files and logic for serialization
Merge remote-tracking branch 'origin/master' into VictorBadila_JsonSerializeForSaveLoad
merge with master branch. prepare for push to master