updated main loop to include search for monsters and fights when monster hits player