Made some preparations for advanced rules and for multiple games
Helper for saving objects to db, and games finnish if all pieces are placed
Removed white space