Corrected last commit (adding break; in switch), implemented AI targeting player.