The constant 6 should be replaced by Game::BEAN_COLOURS.length