Added lose, win state. Implemented XP system.