Added level win lose conditions
Fixed compile error