public void elevatorBoundary(Character c1)

       {

           if(c1.xCord<506)
           {

               c1.xCord = 506;

           }

           if(c1.xCord>782)
           {

               c1.xCord = 782;

           }

           if(c1.yCord < 349)
           {

               c1.yCord = 349;

           }

           if(c1.xCord>505 && c1.xCord<577 && c1.yCord>541)
           {

               c1.yCord = 541;

           }

           if(c1.xCord>714 && c1.xCord<783 && c1.yCord>541)
           {

               c1.yCord = 541;

           }

       }