New engine features

Counts points
Determines survivor and winner (highest points)
Handles flags
Handles neutral movement
Handles case where player didn’t make any move
Handles conditional mine drops
Handles game timeout
Handles elapsed time
Merge branch 'engine-flags' into tmp
Merge branch 'master' into tmp
Fixed bug, flags was painter using wrong painter object.