adds save/load functionality
fixes win detection