this prevents diagonal movement from being faster than cardinal movement. Without normalization, moving right gives a vector of (1, 0) with a magnitude of 1. Moving diagonally gives (1, 1) with a magnitude of ~1.414. Normalized forces the magnitude back to 1 regardless of direction.