refactoring and added game over blocks