protected Piece rotatePiece()
    {
        Piece piece = null;
        Point[] temp = new Point[body.length];
        
        //switch x,y to y,x
        for (int i = 0; i < body.length; i++)
        {
            temp[i] = new Point();
            temp[i].x = body[i].y;
            temp[i].y = body[i].x;
        }
        
        piece = new Piece(temp);
        piece.setPieceDims();
        
        for (int i = 0; i < piece.body.length; i++)
        {
            temp[i].x = (piece.width - 1) - piece.body[i].x;
            temp[i].y = piece.body[i].y;
            
        }
        
        piece = new Piece(temp);
        return(piece);
    }