Reworked ball collision detection, offeseted rectangle changed to polygon which is made of original ball rectangle and offseted ball rectangle