modified randomPlayer.py