Fixed issue where obstacle would not be drawn in correct place