Added checked and game over functionality