fixed bugs with resetting
added comments
lose class, reset at lose