Fixed a couple of issues in craftingRecipes.cpp

Added a new function for parsing numbers. Its advantages over atoi are that it has bounds checking and can parse any integer type.
Why not wait until std::stoi is available? This is somewhat cringeworthy :(