fixed bug, wasnt or'ing moved flag