Added constants to replace "magic numbers"
Fixed some dumb things since I didn't make sure last version compiled
Added win condition
Refactored watchdog trip out to restart() function