Update problem.cpp

action now returns location of 0