fix end game logic and added logic for drawn card matching requested card