Added sprite flashes. Updated mouse handling.