solves for the optimal placement of card for open face chinese game