Removed duplicate functions and moved pause check in weather.cpp