Optimizations, mostly to restoreGame method
Optimized findConflicts method
Renamed saveState function to saveGame