Added loop break if money runs out.