fixed corner collisions

Also fixed the screen not updating when you are holding the left mouse
button.