Added 9-directional driving