Add gameover

add gameover functionality
keep refactoring