Moved one line shit out of core.cpp

inlined core::isRunning() and const corrected it.