ReUploaded rushHour.cpp