Added buffers for the ghosts and functions for updating their position