implemented collision detection with Separating Axis Theorem