Changed safe to 0 and added gameWon function