Added collisions between balls and lines

Game over will be triggered if a ball collides with an expanding line,
which freezes all updates and changes the background red. Game can now
be reset using Space. Added some optimizations to previous collision
code.