Using preferences to store game states and options