Especially the precedence and what a comma operator does.
Line 77 and 87 do not make sense. What is , row=space, col=space supposed to do?
On line 67 you determined that nothing but 'd' can be userchoice. Hence on line 87 userchoice can impossibly be 'f'. I showed you already how it is done right.