Added struct and methods for ghost points
Made methods to reduce redundancies