adding modifications from professor meeting and tonight
adding changes to the logic engine