Refactors method that ranks boards