Added collision detection to trigger game over.

Fixes #23.