You will need to write an if statement to ensure you select the correct variable name using the user's input. In your question you state the ReadLine() is stored in a playerInput variable but your code sample shows two variables named xInput and oInput. For the sake of keeping this simple my answer uses the single playerInput variable you mention in your question. For example:
if (playerInput == "topLeft") { topLeft = "X"; } else if (playerInput == "topMiddle") { topMiddle = "X"; } ... else if (playerInput == "bottomRight") { bottomRight = "X"; ) } This is how you can ensure the correct variable is updated in your program. There are definitely more elegant ways to implement your tic tac toe game than the approach you've taken here, so after you get this working, consider reiterating to make the code cleaner.