fixed bug with ai in player