Reinforcement learning algorithms applied to the Pacman game