remove diagonal movements to avoid bug