added polygon shape collision for box2d physics. some minor changes