Why Life is Like a Video Game