improved getMoveRange and added terrain and some character variables