added basic polygon implementation with collision detection using the SAT algorithm
updated tests