The profit functions for levels 1, 2 and 3 should be moved to profits.js and tested. The level 1 profit function is duplicated between stateManagement.js and profits.js and it already has tests, so it should be simple. The other two should then just follow the same pattern used for level 1.
The profit functions for levels 1, 2 and 3 should be moved to profits.js and tested. The level 1 profit function is duplicated between stateManagement.js and profits.js and it already has tests, so it should be simple. The other two should then just follow the same pattern used for level 1.