fixed a typo and made moves case insensitive