fixed incorrect speed for diagonal moves