Optimize Pokemon 'L' script