implementing basic strategy for auto-player