random encounter function

made it so the player can have random encounters while walking around