made game over into functions
fixes issue with profile path