Code cleanup.
Added lives.

Also added grace counter and flashing animation.