added 8 directional movement