Fixed bug cannot restart game
Fixed bug in check lose conditions