Update Entity.java

Added support for moving.