add const RANKS_AMOUNT, cleaning up