My code keeps failing because : The program ran too long and was closed! No idea why though