i was struggling on the characters movement for such a long time but it turns out i just had to put only one block to make it work