add dealPlayer() funtion