Added boundary conditions to FLIP