using getWidth in isMoveOutOfBounds