Added Brian's code and a Game Over condition