added isMoving method to physicsComponent and cleaned and `else if` statement in Dispatcher