flipcolor(), winner(), undo() added

can only undo 1 level for now