Update vector.cpp

Turned Rect check in the polygon collision check.