adjust bird move rule when window resizes