Made movement grid location by grid location and got rid of the floating point error by roudning the numbers to the nearest multiple of 40 ( should change this to sprite size or grid size)
Cleaned up combatPlayer.js