State Pattern and Command Pattern Image Changes

when ninja is hit he dies and goes to heaven, when a space is pressed
game over screen is shown , And New Game | Exit game image is changed.