entity.js
Fix player movement using Euclidian distance