public void keyAction(){
            //Conditions: key pressed and left is not AI
            if (p1UpPress && userLeft){
                p.get(0).moveUp();              
            }
            
            if (p1DownPress && userLeft){
                p.get(0).moveDown();               
            }
            
            //Condtions: key pressed and right is not AI
            if (p2UpPress && userRight){
                p.get(1).moveUp();              
            }
            
            if (p2DownPress && userRight){
                p.get(1).moveDown();               
            }
            
            repaint();
        }