added checking in the computer player ai for the last room visited