updated code, has character movements
swapped the directions of A and D

A was east and D was west, which was the opposite of what i wanted
updated code