Added some basic ball collision handling.