Serialized the direction class so it can be passed as part of an intent