buggy new periodical movement with booleans implemented