Fixed some syntax errors in mainLogic.js. Having errors will the middlegroud; it keeps returning as null.