card position algorithm is changed