Added collision detection using SAT