added vector class, collision detection using separating axis theorem