implementation of periodicity for particles works now
example for periodicity check