Fixed polygonal collision detection. Other stuff also