Might need to make another function

When I try to play the game, the blocks can land properly. However, if I move a block left or right and another block is there, then it will overlap with that block.