Wrote goalCollisionCheck, reset, and wallCollisionCheck.