I'm having trouble with basic pawn movement in C++(I'm losing my mind)

Thank you! I’ll try it tomorrow morning and tell you how it goes!