First pass at implementing pam effect
Still has some graphic corruption