fixed monster movement code