implemented random monster generation

also fixed minor error in the move function
also brought in a rand function that sucks less than the js default