game is lost if snake hits itself or leaves the playground