Changes made to logic.js