Fixed the bug when the main char could move on the characters if the movement was diagonal or too fast